<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>绘制-直线-stroke-linejoin</title>
    <style>
      body,
      ul {
        margin: 0;
        padding: 0;
      }

      body {
        background-image: url(../../images/grid.png);
      }
      svg {
        background-color: rgba(255, 0, 0, 0.1);
      }
    </style>
  </head>
  <body>
    <svg width="300" height="200" xmlns="http://www.w3.org/2000/svg">
      <!-- 
        stroke-linejoin: 定义两条线相交时，所创建的拐角类型
        miter: 默认值。创建尖角
        round: 创建圆角
        bevel: 创建斜角
      -->
      <line
        x1="50"
        y1="50"
        x2="150"
        y2="50"
        stroke="red"
        stroke-width="10"
        stroke-linejoin="miter"
      ></line>

      <polyline
        points="200,50 250,50 250,100"
        stroke="red"
        stroke-width="10"
        stroke-linejoin="round"
        fill="transparent"
      ></polyline>
    </svg>
  </body>
</html>
